package br.ufrn.sigtcc.controller.services;

import java.util.List;

import br.ufrn.sigtcc.controller.services.interfaces.IPropostaTCCService;
import br.ufrn.sigtcc.data.DAOPropostaTCCImpl;
import br.ufrn.sigtcc.data.interfaces.IDAOPropostaTCC;
import br.ufrn.sigtcc.model.entidades.PropostaTCC;
import br.ufrn.sigtcc.util.exceptions.BDException;

public class PropostaTCCService implements IPropostaTCCService{
	
	IDAOPropostaTCC daoPropostaTCC =  new DAOPropostaTCCImpl();
	
	public PropostaTCCService(IDAOPropostaTCC dao) {
		this.daoPropostaTCC = dao;
	}
	
	public PropostaTCCService() {
		
	}
	
	@Override
	public List<PropostaTCC> listarPropostasTCCs() throws BDException {
		// TODO Auto-generated method stub
		return this.daoPropostaTCC.listarPropostasTCCs();
	}

	@Override
	public void cadastrarPropostaTCC(PropostaTCC tema)
			throws BDException, IllegalArgumentException {
		// TODO Auto-generated method stub
		this.daoPropostaTCC.cadastrarPropostaTCC(tema);
	}

	@Override
	public void atualizarPropostaTCC(PropostaTCC tema)
			throws BDException, IllegalArgumentException {
		// TODO Auto-generated method stub
		this.daoPropostaTCC.atualizarPropostaTCC(tema);
	}

	@Override
	public void removerPropostaTCC(PropostaTCC tema)
			throws BDException, IllegalArgumentException {
		// TODO Auto-generated method stub
		this.daoPropostaTCC.removerPropostaTCC(tema);
	}
	
}
